package cn.glc.daily.life.model.dto.dict;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 字典查询条件DTO
 *
 * @author simon
 * @date 2021/4/13 12:00
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
@Data
@EqualsAndHashCode()
@ApiModel(value = "字典查询条件", description = "")
public class DictDeleteDto {

    /**
     * 唯一值（当前节点的值）
     */
    @ApiModelProperty(value = "唯一值", example = "pay")
    @NotBlank(message = "code不能为空")
    private String code;
    /**
     * 删除标记,0:未删除/1:删除
     */
    @ApiModelProperty(value = "删除标记", example = "0:未删除/1:删除")
    @NotNull(message = "删除标记不能为空")
    @JsonSerialize(using = ToStringSerializer.class)
    private Boolean isDelete;
}
